﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.AspNet.Identity;

namespace Prime.Models
{
    public class Helper
    {
        public static LearningDbEntities db = new LearningDbEntities();
        public static bool CheckStudentCourse(string user_student, int id)
        {
            var temp = (from t in db.StudentCourseProgresses
                        where t.UserName == user_student
                        select t).Any();
            //TODO 
            // Add any new requirement
            return temp;
        }


    }
}